package com.ict.txmsv2.controller.config;

import com.ict.txmsv2.model.Menu;
import com.ict.txmsv2.model.MethodDescrition;
import com.ict.txmsv2.services.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author yoleen
 * @date 2020/2/26 10:02
 */

@RestController
@RequestMapping("/system/config")
public class SystemConfigController {
    @Autowired
    MenuService menuService;

    @MethodDescrition("初始化菜单")
    @GetMapping("/menu")
    public List<Menu> getMenuByHrid(){
        return menuService.getMenuByUserid();
    }
}
